package com.ruoyi.ihome.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房间区域中间表对象 room_and_district
 * 
 * @author mage
 * @date 2024-08-13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomAndDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 中间表id */
    private Long id;

    /** 房间id */
    private Long houseId;

    /** 房间区域id */
    private Long roomDistrictId;

    /** 区域图片 */
    @Excel(name = "区域图片")
    private String image;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setRoomDistrictId(Long roomDistrictId) 
    {
        this.roomDistrictId = roomDistrictId;
    }

    public Long getRoomDistrictId() 
    {
        return roomDistrictId;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseId", getHouseId())
            .append("roomDistrictId", getRoomDistrictId())
            .append("image", getImage())
            .toString();
    }
}
